import 'package:bitcatflutter/basic_widget.dart';
import 'package:bitcatflutter/home_page.dart';
import 'package:bitcatflutter/widget/button_page.dart';
import 'package:bitcatflutter/widget/container_page.dart';
import 'package:bitcatflutter/widget/form_page.dart';
import 'package:bitcatflutter/widget/gridview_page.dart';
import 'package:bitcatflutter/widget/home_skeleton.dart';
import 'package:bitcatflutter/widget/image_page.dart';
import 'package:bitcatflutter/widget/listView_page.dart';
import 'package:bitcatflutter/widget/switch_page.dart';
import 'package:bitcatflutter/widget/text_page.dart';
import 'package:bitcatflutter/widget/textfield_page.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true
      ),
      home: const HomePage(),
      routes: {
        "/text":(context) => const TextPage(),
        "/image":(context) => const ImagePage(),
        "/button":(context) => const ButtonPage(),
        "/textfield":(context) =>  TextFieldPage(),
        "/form":(context) =>  FormPage(),
        "/switch":(context) =>  SwitchPage(),
        "/container":(context) =>  ContainerPage(),
        "/listview":(context) =>  listViewPage(),
        "/GridView":(context) =>  GridViewPage(),
        "/basic_widget":(context) =>  BasicWidgetPage(),
        "/home":(context) =>  HomePage(),
        "/HomeSkeleton":(context) =>  HomeSkeletonPage(),
      },
    );
  }
}

